package com.probox.order.api.domain;

import com.probox.common.core.enums.TraceStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(description="订单物流节点明细")
public class TraceVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "接收站")
    private String AcceptStation;

    @ApiModelProperty(value = "时间点")
    private String AcceptTime;

    @ApiModelProperty(value = "当前状态")
    private String action;

    @ApiModelProperty(value = "状态描述")
    public String getActionName(){
        return TraceStatusEnum.getNameByKey(action);
    }
}
